package com.auth.manage.domain.entity;

import com.auth.manage.datasource.domain.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("auth_code")
public class AuthCode extends BaseEntity {

    private Long userId;

    private String cdk;

    private Integer status; // TINYINT 通常映射为 Integer

    private Long bindPortLimit;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 格式化JSON输出
    private LocalDateTime expiresTime;

    private Long createdBy;

    private Long updatedBy;

}